net: ena: fix retrieval of nonadaptive interrupt moderation intervals
authorArthur Kiyanovski <akiyano@amazon.com>
Mon, 16 Sep 2019 11:31:35 +0000 (14:31 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Nov 2019 01:43:33 +0000 (01:43 +0000)
commitbecd18a4f4f78e0d10a2f3208faf61f5c98c2fe6
tree7887968ce2b2241118b746fb0ed70425ce33a458
parent2f66f4d947afa28b8faeabba17c4ad4a3d66ba2f
net: ena: fix retrieval of nonadaptive interrupt moderation intervals

Nonadaptive interrupt moderation intervals are assigned the value set
by the user in ethtool -C divided by ena_dev->intr_delay_resolution.

Therefore when the user tries to get the nonadaptive interrupt moderation
intervals with ethtool -c the code needs to multiply the saved value
by ena_dev->intr_delay_resolution.

The current code erroneously divides instead of multiplying in ethtool -c.
This patch fixes this.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic features/all/ena
Gbp-Pq: Name 0011-net-ena-fix-retrieval-of-nonadaptive-interrupt-moder.patch
drivers/net/ethernet/amazon/ena/ena_ethtool.c